package mornd.test8;

import mornd.test8.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: mornd
 * @dateTime: 2023/5/8 - 18:36
 */

//@Controller
@RestController
public class MyController {

    @GetMapping(produces = "application/json")
    //@ResponseBody
    public User getUser() {
        return new User("张三");
    }
}
